package com.ccit.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("健身器材")
@TableName("equipment")
public class Equipment {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "器材名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "器材数量")
    @TableField("count")
    private Integer count;


    @ApiModelProperty(value = "器材图片")
    @TableField("img_url")
    private String imgUrl;

    @TableLogic//逻辑删除注解
    @ApiModelProperty(value = "员工逻辑删除,1 已删除  0 未删除")
    @TableField("deleted")
    @JsonIgnoreProperties
    private Integer deleted;
}
